$(document).ready(function(){
	$(".delshare").each(function(){
			$(this).bind("click",function(){deleteshare(this);return false;});
		});
});

function deleteshare(obj){
	alertMessage(obj,"确定删除");
	$(".msgOk").bind("click",function(){delShareAction(obj);});
}

function delShareAction(obj){
	var url = $(obj).attr("href");
	$.get(url,{ajax:1},function(data){
		if("success"==data){
			$("#messageBox").remove();
			$(obj).parent().parent().fadeOut(2000);
		}else{
			$("#messageBox").remove();
			msg(obj,"操作失败");
		}
	});
}